#!/bin/sh
#
# Check that the transfer rate counter changes.
#
# $Id: 006-ratecount 2 2002-12-03 00:35:34Z ivarch $

(dd if=/dev/zero bs=100 count=1 2>/dev/null;
 sleep 1;
 dd if=/dev/zero bs=100 count=1 2>/dev/null;
) | $PROG -f -r >/dev/null 2>$TMP1
NUM=`tr '\r' '\n' < $TMP1 | sort | uniq -u | wc -l | tr -d ' '`
test $NUM -gt 2

# EOF $Id: 006-ratecount 2 2002-12-03 00:35:34Z ivarch $
